package com.dz.risk.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dz.risk.common.exception.RRException;
import com.dz.risk.dao.RiskFactorDao;
import com.dz.risk.dao.RiskFactorIndicatorsDao;
import com.dz.risk.pojo.domain.RiskFactorEntity;
import com.dz.risk.pojo.domain.RiskFactorIndicatorsEntity;
import com.dz.risk.service.RiskFactorIndicatorsService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 风险因子表
 *
 * @author samsara
 * @date 2021-09-09 14:00:30
 */
@Service("riskFactorServiceIndicators")
public class RiskFactorServiceIndicatorsImpl extends ServiceImpl<RiskFactorIndicatorsDao, RiskFactorIndicatorsEntity> implements RiskFactorIndicatorsService {


    @Override
    public List<RiskFactorIndicatorsEntity> getList() throws RRException {
        QueryWrapper<RiskFactorIndicatorsEntity> query = new QueryWrapper<>();
        query.orderByAsc("index_id");
        return this.list(query);
    }
}